#pragma once

#include "forms\skinbasewidget.h"
#include "forms\skin24window.h"
//#include "contentform.h"

class MainForm : public SkinBaseWidget
{
	Q_OBJECT

public:
	MainForm(QWidget *parent = 0);

protected:
	virtual void resizeEvent(QResizeEvent *e);
	virtual bool winEvent(MSG *message, long *result);

protected:
	void setParentTitle(QString title);

private:
	void setupUI();
	void runCaption();
	void runAssistant();
	void regionCamera();

private:
	bool startHookCapital;
	int capitalTimes;
	QString assistantTitle;
	QScrollArea *contentArea;
	QWidget *contentForm;
	QWidget *m_topbar;

private slots:
	void slotExit();
	void slotStopHookCaptal();
	void slotOpenSAS();
	void slotFinishCamera(QWidget *w);
};